<template>
  <div>我是组件B</div>
</template>

<script>
export default {
  beforeCreate() {
    console.log("beforeCreate B");
  },
  created() {
    console.log("created B");
  },
  beforeMount() {
    console.log("beforeMount B");
  },
  mounted() {
    console.log("mounted B");
  },
  updated() {
    console.log("updated B");
  },
  beforeDestroy() {
    console.log("beforeDestroy B");
  },
  destroyed() {
    console.log("destroyed B");
  }
};
</script>

<style>
</style>
